<%@ taglib prefix="s" uri="/struts-tags" %>
<div id="menu">
	<ul>
		<li class="first <s:if test="#menu == 'home'">active</s:if>"><a href="<s:url action="index" namespace="/" />"><s:text name="home" /></a></li>
		<li<s:if test="#menu == 'help'"> class="active"</s:if>><a href="#"><s:text name="help" /></a></li>
		<li<s:if test="#menu == 'search'"> class="active"</s:if>><a href="#"><s:text name="search" /></a></li>
		<s:if test="#session[@kiff.util.SessionConstants@USER_SESSION] != null">
			<li<s:if test="#menu == 'profile'"> class="active"</s:if>><a href="#"><s:text name="profile" /></a></li>
			<s:if test="#session[@kiff.util.SessionConstants@USER_SESSION].administrator">
				<li<s:if test="#menu == 'admin'"> class="active"</s:if>><a href="<s:url action="index" namespace="/admin" />"><s:text name="admin" /></a></li>
			</s:if>
			<li><a href="<s:url action="out" namespace="/" />"><s:text name="logout" /></a></li>
		</s:if><s:else>
			<li<s:if test="#menu == 'login'"> class="active"</s:if>><a href="<s:url action="login" namespace="/" />"><s:text name="login" /></a></li>
		</s:else>	
	</ul>
</div>
